package com.t235.gc.auth.model;

import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;


@Getter
public class MyUserDetails extends User {
    /**
     * 这里我只用简单的 用户名 密码  权限集合
     * 还有一个复杂的方法
     *
     * @param username
     * @param password
     * @param authorities
     */
    public MyUserDetails(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }
}
